<template>
  <div class="perNav">
    <span class="iconfont icon-zuo" @click="backClick"></span>
    <div class="center">{{center}}</div>
    <span class="iconfont icon-zhifu" @click="rightClick"></span>
  </div>
</template>

<script>
export default {
  methods: {
    backClick() {
      this.$router.push({
        path: "/person"
      });
    },
    // 右边点击事件发送请求
    rightClick() {
      this.$emit("rightClick");
    }
  },
  props:['center']
};
</script>

<style lang="less" scoped>
.perNav {
  padding: 2.222vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 13.889vw;
  .center {
    font-size: 5.001vw;
  }
}
</style>